import request from '@/utils/request'

//数据字典-相关接口
const API = "/admin/cmn/dict";

export default {
  //根据parentId查询子数据
  getByParentId(parentId) {
    return request({
      url: `${API}/getByParentId/${parentId}`,
      method: 'get'
    })
  },
  //根据code查询子数据
  getByCode(code) {
    return request({
      url: `${API}/getByCode/${code}`,
      method: 'get'
    })
  }
}